package tech.aichan.AiQA.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import tech.aichan.AiQA.common.DeleteRequest;
import tech.aichan.AiQA.model.dto.question.QuestionAddRequest;
import tech.aichan.AiQA.model.dto.question.QuestionContentDTO;
import tech.aichan.AiQA.model.dto.question.QuestionQueryRequest;
import tech.aichan.AiQA.model.dto.question.QuestionUpdateRequest;
import tech.aichan.AiQA.model.entity.Question;
import com.baomidou.mybatisplus.extension.service.IService;
import tech.aichan.AiQA.model.vo.question.QuestionVO;

import java.util.List;

/**
* @author AiChan
* @description 针对表【question(题目)】的数据库操作Service
* @createDate 2024-05-30 14:15:41
*/
public interface QuestionService extends IService<Question> {

    Long addQuestion(QuestionAddRequest questionAddRequest);

    void deleteQuestion(Long id);

    Long updateQuestion(List<QuestionContentDTO> questionContent, Long id);

    Page<Question> listPageQuestion(QuestionQueryRequest questionQueryRequest);
    Page<QuestionVO> listPageQuestionVO(QuestionQueryRequest questionQueryRequest);

    Wrapper<Question> getQueryWrapper(QuestionQueryRequest questionQueryRequest);

    void editQuestion(List<QuestionContentDTO> questionContent, Long id);
}
